#include<iostream>
using namespace std;
class Base
{
private:
	int d;
public:
	Base(int i);
	void show();
};
class Derived :public Base
{
public:
	Base d;
	Derived(int i,int j);
};
Base::Base(int i)
{
	d = i;
	cout << "The basement is constructed\n";
}
void Base::show()
{
	cout << "d =" << d<< endl;
}
Derived::Derived(int i,int j) : Base(i),d(j)
{
	cout << "The derived one has been constructed" << endl;
}
int main(void)
{
	Derived obj(10,100);
	obj.show();
	obj.d.show();
	return 0;
}